<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>添加</title>
    <link rel="stylesheet" href="../../../../layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../../css/commodityCss/goodsCss/productAdd.css">
</head>
<body>
<div id="sp_add_first">
    <form class="layui-form" action="javascript:;">
        <div>
            <table id="sp_add_table_style">
                <tr>
                    <td class="sp_spadd">商品分类：&nbsp;&nbsp;</td>
                    <td><input id="aa" type="text"  placeholder="请选择商品分类" class="layui-input"
                    readonly="readonly" lay-verify="required">
                        <input type="hidden" id="treeid" name="classifyId">
                    </td>
                    <td id="sp_spfl">
                        <i class="layui-icon layui-icon-layer" id="ztree"></i>
                    </td>
                </tr>
                <tr>
                    <td class="sp_spadd">商品编号：&nbsp;&nbsp;</td>
                    <td><input type="text" name="commodityCode" placeholder="请输入商品编号" class="layui-input"></td>
                </tr>
                <tr>
                    <td class="sp_spadd">商品名称：&nbsp;&nbsp;</td>
                    <td><input type="text" name="commodityName" placeholder="请输入商品名称" class="layui-input"></td>
                </tr>
                <tr>
                    <td class="sp_spadd">上传时间：&nbsp;&nbsp;</td>
                    <td><input type="text" id="createDate" name="createDate" placeholder="请输入商品名称" class="layui-input"></td>
                </tr>
                <tr>
                    <td class="sp_spadd">商品状态：&nbsp;&nbsp;</td>
                    <td>
                        <select style="text-align: left" name="commodityState" class="layui-input">
                            <option value="">请选择商品状态</option>
                            <option value="1">上架</option>
                            <option value="2">下架</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="sp_spadd">商品价格：&nbsp;&nbsp;</td>
                    <td><input type="text" name="currentPrice" placeholder="请输入商品价格" class="layui-input"></td>
                </tr>
                <tr>
                    <td class="sp_spadd">商品标签：&nbsp;&nbsp;</td>
                    <td><input type="text" name="commodityLabel" placeholder="请输入商品标签" class="layui-input"></td>
                </tr>
                <tr>
                    <td class="sp_spadd">关键字：&nbsp;&nbsp;</td>
                    <td><input type="text" name="searchKeywords" placeholder="请输入关键字" class="layui-input"></td>
                </tr>
                <tr>
                    <td class="sp_spadd">图片：&nbsp;&nbsp;</td>
                    <td>
                        <div class="layui-form-item">
                            <div>
                                <button type="button" class="layui-btn layui-btn-primary layui-border-blue" id="upload"  style="width: 120px">
                                    上传图片
                                </button>
                                <input type="hidden" id="pic" name="commodityImage" th :value="${obj?.pic}"/>
                                <div id="imgDiv" class="layui-upload-list">
                                    <img class="layui-upload-img" width="120px" height="100px" id="demo1" name="msg"/>
                                    <p id="demoText"></p>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="sp_spadd">新品推荐：&nbsp;&nbsp;</td>
                    <td>
                        <div class="layui-form-item">
                            <input type="radio" name="recommend" value="2" title="新品">
                            <input type="radio" name="recommend" value="3" title="推荐" checked>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="sp_spadd">优惠劵：&nbsp;&nbsp;</td>
                    <td>
                        <div class="layui-form-item">
                            <input type="radio" name="discount" value="2" title="可用">
                            <input type="radio" name="discount" value="3" title="不可用" checked>
                        </div>
                    </td>
                </tr>
<!--                <tr>-->
<!--                    <td class="sp_spadd">-->
<!--                        <div id="sp_add_fuWu">-->
<!--                            服务保障：&nbsp;&nbsp;-->
<!--                        </div>-->
<!--                    </td>-->
<!--                    <td>-->
<!--                        <div class="layui-form-item">-->
<!--                            <input type="radio" name="ensure" value="2" title="无忧退货"></br>-->
<!--                            <input type="radio" name="ensure" value="3" title="快速退货"></br>-->
<!--                            <input type="radio" name="ensure" value="4" title="免费包邮" checked>-->
<!--                        </div>-->
<!--                    </td>-->
<!--                </tr>-->
                <tr>
                    <td colspan="2">
                        <div style="text-align: right" class="layui-form-item">
                            <button class="layui-btn layui-btn-primary layui-border-green" style="width: 100px" id="qx">取消</button>
                            <button class="layui-btn layui-btn-primary layui-border-blue" style="width: 100px" lay-submit lay-filter="ljtj">立即提交</button>
                            <button class="layui-btn layui-btn-primary layui-border-orange" style="width: 100px" type="reset">重置</button>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</div>
<script src="../../../../layui/layui.js"></script>
<script src="../../../../layui/jquery-3.6.0.js"></script>
<script src="../../../../js/commodityJs/goodsJs/productAdd.js"></script>
</body>
</html>